package com.be.beadmin.product.task;

import cn.hutool.extra.spring.SpringUtil;
import com.be.beadmin.product.entity.WorkOrderInfor;
import com.be.beadmin.product.repository.WorkOrderInforRepository;
import com.be.beadmin.product.service.WorkingHoursCountService;
import com.be.beadmin.service.task.BaseTask;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 16:14 2024/1/11
 * @Modified By:
 **/
public class WorkingHoursCountTask extends BaseTask {

    private final WorkingHoursCountService workingHoursCountService = SpringUtil.getBean(WorkingHoursCountService.class);

    public WorkingHoursCountTask() {
        super("工时统计");
    }
    /**
     * @description 执行任务
     */
    @Override
    public void doTask() {
        workingHoursCountService.generateWorkingHoursCount();
    }
}
